package jimo.SSMStudent.service.impl;

import jimo.SSMStudent.mapper.GradeMapper;
import jimo.SSMStudent.pojo.Grade;
import jimo.SSMStudent.pojo.GradeExample;
import jimo.SSMStudent.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GradeServiceImpl implements GradeService {
    @Autowired
    private GradeMapper gradeMapper;
    /***
     * 查询全部年级信息
     */
    @Override
    public List<Grade> gradeAll() {
        return gradeMapper.selectByExample(new GradeExample());
    }
}
